<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <!-- <HelloWorld msg="Welcome to Your Vue.js App" /> -->
    <h1><h1>This is an main home page</h1></h1>
    <h2 @click="toson">to son home</h2>
  </div>
</template>

<script>
// @ is an alias to /src
// import HelloWorld from "@/components/HelloWorld.vue";

export default {
  name: "Home",
  components: {
    // HelloWorld
  },
  methods:{
    toson(){
      // this.$router.push('vue/about')
      this.$router.push('vue/about', function(){
        console.log('as');
      })
    }
  }
};
</script>
